<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

	<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<base href="<%=basePath%>">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>校园环境卫生与设施故障管理</title>
		<!--Favicon -->
		<link rel="icon" href="favicon.ico" type="image/x-icon"/>

		<!--Bootstrap.min css-->
		<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">

		<!--Icons css-->
		<link rel="stylesheet" href="assets/css/icons.css">

		<!--Style css-->
		<link rel="stylesheet" href="assets/css/style.css">

		<!--mCustomScrollbar css-->
		<link rel="stylesheet" href="assets/plugins/scroll-bar/jquery.mCustomScrollbar.css">

		<!--Sidemenu css-->
		<link rel="stylesheet" href="assets/plugins/toggle-menu/sidemenu.css">

	</head>
	<body class="bg-primary">
		<div id="app">

		
		
		
		
		
			<section class="section section-2">
                <div class="container">
					<div class="row">
						<div class="single-page single-pageimage construction-bg cover-image " data-image-src="assets/img/news/img14.jpg">
							<div class="row">
								<div class="col-lg-6">
									<div class="wrapper wrapper2">
										<form id="login" action="login.action" method="post" class="card-body" tabindex="500">
											<h3>校园环境卫生与设施故障管理</h3>
											<div class="mail">
											
												 <font color="#FF00FF">${message}</font>
					 <font color="#FF00FF" id="tip"></font>
						
						
						
						
					
											
											<input name="admin.username" type="text" id="uid" />
												<label>帐&nbsp;&nbsp;&nbsp;&nbsp;号：</label>
											</div>
											<div class="passwd">
												<input name="admin.password" type="password" id="pwd" />
												<label>密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
											</div>
											<div class="submit">
												身&nbsp;&nbsp;&nbsp;&nbsp;份：
						<select name="status">
							<option value="-1">--请选择--</option>
							<option value="2">--管理员--</option>
							<option value="0">--普通用户--</option>
							<option value="1">--维修人员--</option>
						</select>
						
											<input type="submit" value=" 登 录 " class="btn btn-primary btn-block" id="teds" />
												
											</div>
											<p class="text-dark mb-0">新用户请先注册<a href="${pageContext.request.contextPath}/register.jsp" class="text-primary ml-1">注册</a></p>
										</form>
									
									</div>
								</div>
								<div class="col-lg-6">
									<div class="log-wrapper text-center">
									
										<img src="assets/img/brand/logo-white.png" class="mb-2 mt-4 mt-lg-0 " alt="logo">
										<p>欢迎使用校园环境卫生与设施故障管理系统</p>
										<a class="btn btn-primary mt-3" href="#"></a>
									</div>
								</div>
							</div>
						</div>	
					</div>
				</div>
			</section>
		</div>

		<!--Jquery.min js-->
		<script src="assets/js/jquery.min.js"></script>

		<!--popper js-->
		<script src="assets/js/popper.js"></script>

		<!--Tooltip js-->
		<script src="assets/js/tooltip.js"></script>

		<!--Bootstrap.min js-->
		<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>

		<!--Jquery.nicescroll.min js-->
		<script src="assets/plugins/nicescroll/jquery.nicescroll.min.js"></script>

		<!--Scroll-up-bar.min js-->
		<script src="assets/plugins/scroll-up-bar/dist/scroll-up-bar.min.js"></script>
		
		<script src="assets/js/moment.min.js"></script>

		<!--mCustomScrollbar js-->
		<script src="assets/plugins/scroll-bar/jquery.mCustomScrollbar.concat.min.js"></script>

		<!--Sidemenu js-->
		<script src="assets/plugins/toggle-menu/sidemenu.js"></script>

		<!--Scripts js-->
		<script src="assets/js/scripts.js"></script>
		<script type="text/javascript">
        $(function () {
            $('#teds').click(function () {
                if ($('#uid').val() == "" || $('#pwd').val() == "") { 
                  $('#tip').html('用户名或密码不可为空！'); 
                  return false;
                }
                else {
                    location.href = 'index.jsp';
                }
            })
        })

		</script>
	</body>

</html>